package me.leiusual.sharing.pref

import android.content.Context

/**
 * author: leiusual
 * create on: 2018/10/15
 * description:
 */
abstract class AbstractPref(context: Context) {

  protected val sp = context.getSharedPreferences(javaClass.simpleName, Context.MODE_PRIVATE)!!

  fun clear() {
    sp.edit().clear().apply()
  }
}